package etxt2db.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * A class used holding the contents of an UIMA Analysis Engine descriptor.
 * <p>
 * @see <a href="http://uima.apache.org/downloads/releaseDocs/2.1.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.aae.xml_intro_ae_descriptor">UIMA Analysis Engine Descriptor Documentation</a>
 *
 * @author Gonçalo Simões
 * @author Rui Lageira
 *
 */
public class AnalysisEngineDescriptorData {
	
	private String namespace;
	private String frameworkImplementation;
	private String primitive;
	private String annotatorImplementationName;
	
	private String UCompareTypeSystem;
	
	private List<String> inputTypes;
	private List<String> outputTypes;
	private List<String> mappingsFileContent;
	
	private String name;
	private String description;
	private String version;
	private String vendor;
	
	private String modelPath;
	private List<String> attributes;
	
	private String modifiesCas;
	private String multipleDeploymentAllowed;
	private String outputsNewCASes;
	
	public AnalysisEngineDescriptorData() {
		
		namespace = "http://uima.apache.org/resourceSpecifier";
		frameworkImplementation = "org.apache.uima.java";
		primitive = "true";
		annotatorImplementationName = "etxt2db.annotators.ComponentAnnotator";
		
		UCompareTypeSystem = "org.u_compare.U_compareTypeSystem";
		
		inputTypes = new ArrayList<String>();
		outputTypes = new ArrayList<String>();
		
		outputTypes.add("etxt2db.annotators.NamedEntityTyped");
		
		name = "ComponentDescriptor";
		description = "";
		version = "1.0";
		vendor = "";
		
		modelPath = "";
		attributes = new ArrayList<String>();
		
		modifiesCas = "true";
		multipleDeploymentAllowed = "true";
		outputsNewCASes = "false";
		
	}

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	public String getFrameworkImplementation() {
		return frameworkImplementation;
	}

	public void setFrameworkImplementation(String frameworkImplementation) {
		this.frameworkImplementation = frameworkImplementation;
	}

	public String getPrimitive() {
		return primitive;
	}

	public void setPrimitive(String primitive) {
		this.primitive = primitive;
	}

	public String getAnnotatorImplementationName() {
		return annotatorImplementationName;
	}

	public void setAnnotatorImplementationName(String annotatorImplementationName) {
		this.annotatorImplementationName = annotatorImplementationName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getVendor() {
		return vendor;
	}

	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

	public String getModelPath() {
		return modelPath;
	}

	public void setModelPath(String modelPath) {
		this.modelPath = modelPath;
	}

	public List<String> getAttributes() {
		return attributes;
	}

	public void setAttributes(List<String> attributes) {
		this.attributes = attributes;
	}

	public String getModifiesCas() {
		return modifiesCas;
	}

	public void setModifiesCas(String modifiesCas) {
		this.modifiesCas = modifiesCas;
	}

	public String getMultipleDeploymentAllowed() {
		return multipleDeploymentAllowed;
	}

	public void setMultipleDeploymentAllowed(String multipleDeploymentAllowed) {
		this.multipleDeploymentAllowed = multipleDeploymentAllowed;
	}

	public String getOutputsNewCASes() {
		return outputsNewCASes;
	}

	public void setOutputsNewCASes(String outputsNewCASes) {
		this.outputsNewCASes = outputsNewCASes;
	}

	public String getUCompareTypeSystem() {
		return UCompareTypeSystem;
	}

	public void setUCompareTypeSystem(String uCompareTypeSystem) {
		UCompareTypeSystem = uCompareTypeSystem;
	}

	public List<String> getInputTypes() {
		return inputTypes;
	}

	public void setInputTypes(List<String> inputTypes) {
		this.inputTypes = inputTypes;
	}

	public List<String> getOutputTypes() {
		return outputTypes;
	}

	public void setOutputTypes(List<String> outputTypes) {
		this.outputTypes = outputTypes;
	}

	public List<String> getMappingsFileContent() {
		return mappingsFileContent;
	}

	public void setMappingsFileContent(List<String> mappingsFileContent) {
		this.mappingsFileContent = mappingsFileContent;
	}	
}
